package com.kingyea.mobilepolice.apimanage.accesscontrol.service;

import com.kingyea.mobilepolice.apimanage.accesscontrol.bean.CustomController;

import java.util.List;
import java.util.Map;

/**
 * @author chenjw
 * @version v1.0.0
 * @description CustomController 接口
 * @date Created in 2018-04-03 15:32:08
 */
public interface CustomControllerService {

    /**
     * 通过ID查找对象
     *
     * @param id
     * @return
     */
    CustomController getById(Integer id) throws Exception;

    /**
     * 列表
     *
     * @param customController
     * @return
     */
    List<CustomController> list(CustomController customController) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    int deleteById(Integer id) throws Exception;

    /**
     * 添加
     *
     * @param customController
     * @return
     */
    CustomController save(CustomController customController) throws Exception;

    /**
     * 更新
     *
     * @param customController
     * @return
     */
    CustomController update(CustomController customController) throws Exception;

    List<CustomController> getByReqAndServiceId(Integer senderID, Integer serviceID);

    Object searchByCondition(Map<String, Object> map) throws Exception;

    CustomController getByParam(Map<String, Object> map) throws Exception;

    void addOrSaveACCInfo(CustomController cusController) throws Exception;
}
